<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="public::head('打印结果')">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8"></meta>
</head>
<body style="padding-top:50px;">

<input type="hidden" th:value="${xiangmuId}" id="xiangmuId">
<input type="hidden" th:value="${xiangmuLeixing}" id="xiangmuLeixing">

<div id="Printlist">

    <div class="primary-content">
        <div style="margin-top:15px;text-align: center;font-size:24px">
             <span class="btn btn-info" style="float:left;margin-right:15px;"
                   v-on:click="toback()">返回</span>
            <label  style="margin-left: 20px; ">{{xiangmu.xiangmuname}}</label>
            <a target="_blank" class='btn btn-primary'
               style='float:right;margin-right:15px;width:120px;height:34px;color:#fff !important;'
               :href="'/TyController/huizongbiao?xiangmuid='+xiangmuId+'&xiangmuleixing='+xiangmuleixing">下载汇总表</a>
            <a class='btn btn-info'
               style='float:right;margin-right:15px;width:120px;height:34px;color:#fff !important;'
               href="javaScript:void(0);"
               @click="HuizongbiaoView()">查看汇总表</a>

        </div>

        <div class="primary-content">
            <table class="table table-hover table-striped">
                <thead>
                <th style="text-align:center;vertical-align:middle;">序号</th>
                <th style="text-align:center;vertical-align:middle;">姓名</th>
                <th style="text-align:center;vertical-align:middle;">部职别</th>
                <th style="text-align:center;vertical-align:middle;width:160px;" >打印</th>
                </thead>
                <tbody>
                <tr v-for="(printitem,index) in printlist" v-if="show">
                    <td style="text-align:center;vertical-align:middle;" v-text="index+1"></td>
                    <td style="text-align:center;vertical-align:middle;" v-text="printitem.username"></td>
                    <td style="text-align:center;vertical-align:middle;" v-text="printitem.buzhibie"></td>
                    <td style="text-align:center;vertical-align:middle;" >
                        <div v-if="printitem.issubmit==1" style="display: flex">
                            <a target="_blank" class='btn btn-primary'
                               style='float:right;margin-right:15px;width:120px;height:34px;color:#fff !important;'
                               :href="'/TyController/qianzibiao?xiangmuid='+xiangmuId+'&xiangmuleixing='+xiangmuleixing+'&userid='+printitem.userid">下载签字表</a>
                            <button  style='float:right;margin-right:15px;width:120px;height:34px;color:#fff !important;'
                                     v-on:click="tobohui(printitem.id)" class="btn btn-info">驳回提交</button>
                        </div>
                        <div v-else>
                            <a target="_blank" class='btn btn-danger'
                               style='float:right;margin-right:15px;width:120px;height:34px;color:#fff !important;'>未提交</a>
                        </div>

                    </td>
                </tr>

                </tbody>
            </table>
            <div v-if="!show" style="text-align:center;width:100%;">暂无数据</div>
        </div>

    </div>
</div>


</body>
<script th:src="@{/js/main/list_print.js}"></script>
</html>